package com.yiyuan.app.service;

import com.guaike.core.entity.param.Page;
import com.guaike.core.entity.result.PageEntity;
import com.guaike.core.entity.result.Result;
import com.yiyuan.app.entity.param.AcceptInviteDTO;
import com.yiyuan.app.entity.result.InviteRecordVO;
import com.yiyuan.app.entity.result.InviteVO;

import javax.servlet.http.HttpServletResponse;
import java.awt.*;
import java.io.IOException;

public interface InviteService {
    /**
     * 我的邀请配置信息
     * @return
     */
    Result<InviteVO> myInviteConfig();

    /**
     * 我的邀请记录列表
     * @param param
     * @return
     */
    Result<PageEntity<InviteRecordVO>> myInvitePage(Page param);

    /**
     * 接受邀请
     * @param param
     * @return
     */
    Result<Boolean> acceptInvite(AcceptInviteDTO param);

    /**
     * 下载邀请图片
     * @param response
     */
    void downloadInviteImage(HttpServletResponse response) throws IOException, FontFormatException;
}
